<?php
require 'vendor/autoload.php';
use QL\QueryList;
$sql = QueryList::get('http://aojcl.cn/tuan/index/cat/36/cate_id/72.html');
$array =$sql->rules([
    'title'=>array('.sy_hottjbt','text'),
    'sub_title'=>array('.sy_hottjp','text'),
    'price'=>array('.sy_hottjJg>.left>del','text'),
    'src'=>array('.nearbuy_cpLik>a>img','src'),
])->query()->getData();
$data=$array->all() ;
foreach ($data as $item){
    if(isset($item["sub_title"])){
        echo $item["title"]."---".$item["sub_title"]."----".$item["price"]."<br>";
        echo "<img src='"."http://aojcl.cn".$item["src"]."'>"."<br>";
        echo "<hr>";
    }

}
?>